package edu.sctu.wulixia.month4and5.day20150515;

/**
 * Created by user05 on 2015/5/15.
 */
public class TestChild extends TestParent{
    Student_Info[] students;
    public TestChild(Student_Info[] students){
        super("学生基本信息1：");
        this.students = students;
    }


    @Override
    public int getSysyTem() {
        int k = 0;
        for (int i = 0; i < students.length; i++) {
            if (students[i].getScore() >= 60) {

                k++;
                System.out.println("该生已及格，其所有信息为：\n" + students[i].getName() + "  "+students[i].getSex()+"  "
                        + (students[i].getScore()) + "  " + students[i].getAge() + "  " + students[i].getAddress());

            }
        }
        System.out.println("及格人数为："+k+"\n\n");
        return k;
    }
    public void isJudgeAge(TestTwo judge){
        judge.isMsg(22);
    }
}
